package com.zh.springcloud.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @ClassName TestContoller
 * @date: 2021.11.28 21:32
 * @Author: zhanghang
 */
@RestController
@RequestMapping("/user")
public class TestContoller {

	@GetMapping("/getCurrentUser")
	public Object getCurrentUser(Authentication authentication){
		return authentication;
	}
}
